package top.infopub.mgr.la.service;


import java.util.List;

import com.github.pagehelper.Page;

import top.infopub.mgr.la.domain.UpwardLawcaseDomain;
import top.infopub.mgr.la.vo.UpwardLawcaseVo;
import top.infopub.model.la.UpwardLawcase;
import top.infopub.model.la.UpwardLawcaseAtt;
import top.infopub.model.la.UpwardLawcaseProof;
import top.infopub.model.la.UpwardLawcaseProofAtt;
import top.infopub.generic.GenericService;


public interface UpwardLawcaseService extends GenericService<UpwardLawcase, String> {

    /**
     * 根据条件查询分页记录
     * @param upwardLawcaseVo
     * @return 
     * @see
     */
    Page<UpwardLawcaseDomain> selectByDomainWhere(Page<UpwardLawcaseDomain> page,
                                                  UpwardLawcaseVo upwardLawcaseVo);

    /**
     * 根据条件查询-我审批的分页记录
     * @param upwardLawcaseVo
     * @return 
     * @see
     */
    Page<UpwardLawcaseDomain> selectMyCheckByDomainWhere(Page<UpwardLawcaseDomain> page,
                                                         UpwardLawcaseVo upwardLawcaseVo);

    /**
     * 新增记录（自带id）
     * @param upwardLawcase 
     * @see
     */
    void saveUpwardLawcase(UpwardLawcase upwardLawcase, List<UpwardLawcaseAtt> upwardLawcaseAtts,
                           List<UpwardLawcaseProof> upwardLawcaseProofs,
                           List<UpwardLawcaseProofAtt> upwardLawcaseProofAtts);

    /**
     * 根据id查询记录详情
     * @param id 主键id
     * @return 
     * @see
     */
    UpwardLawcaseVo queryById(String id);
    
    /**
     * 查询可调解的上诉案件记录
     * @return 
     * @see
     */
    List<UpwardLawcase> selectUsablePeace();

}